
package util;

import java.security.PublicKey;

/**
 *
 * @author Sam
 * Vereenvoudige dummy van Certificate - Clean & Simple
 */
public class Certificate {
    
    private PublicKey publicKey;
    private byte[] hash;

    public byte[] getHash() {
        return hash;
    }

    public PublicKey getPublicKey() {
        return publicKey;
    }
    
    public Certificate(PublicKey pk,byte[] h){
        this.publicKey = pk;
        this.hash = h;  
    }

    @Override
    public String toString() {
        return "\npublicKey: \n"+publicKey+"\nHash:\n"+hash;
    }
}
